package member.base.model;

import m.common.model.FieldMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

@TableMeta(name="b_menu_info",description="菜单表")
public class MenuInfo extends Model {
    @FieldMeta(name="sort",type= FieldType.INT,description="排序")
    private Integer sort;
    @FieldMeta(name="group_name",type= FieldType.STRING,length=50,description="组名称")
    private String groupName;
    @FieldMeta(name="name",type= FieldType.STRING,length=50,description="名称")
    private String name;
    @FieldMeta(name="icon",type= FieldType.STRING,length=50,description="icon")
    private String icon;
    @FieldMeta(name="description",type= FieldType.STRING,length=50,description="描述")
    private String description;
    @FieldMeta(name="path",type= FieldType.STRING,length=500,description="路径")
    private String path;

    @FieldMeta(name="is_public",type= FieldType.STRING,description="是否公共菜单",dictOption = "Y:是,N:否")
    private String isPublic;
    public final static String PublicMenu="Y";
    public final static String PrivateMenu="N";

    @FieldMeta(name="power",type= FieldType.STRING,length = 50,description="权限")
    private String power;

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(String isPublic) {
        this.isPublic = isPublic;
    }
}
